<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/js/axios.min.js"></script>
    <script>
        function $(id){
            return document.getElementById(id);
        }
        window.onload=function (){
            showDatas();
        }

        function  showDatas(){
            axios.get("/user/getList").then(resp =>{
               var info = resp.data;
               var str ="";
               info.forEach(n =>{
                   str += `<tr><td>${n.id}</td><td>${n.name}</td><td>${n.birthday}</td></tr>`
               })
               $("datas").innerHTML=str;
            })
        }
    </script>
</head>
<body>

<table border="1" width="80%" cellspacing="0">
        <thead><tr><th>编号</th><th>姓名</th><th>生日</th></tr></thead>

        <tbody id="datas"> </tbody>
</table>
</body>
</html>